package com.ruoyi.system.domain.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.domain.JiajiaMailOrderDetail;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商城订单对象 jiajia_mall_order
 *
 * @author ruoyi
 * @date 2025-03-05
 */
public class JiajiaMallOrderDto
{

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    @Excel(name = "地址簿Id")
    private Long addressId;

    /** 支付回调id */
    @Excel(name = "支付回调id")
    private Long transactionId;

    /** 订单说明 */
    @Excel(name = "订单说明")
    private String orderDescription;

    /** 订单数据包 */
    @Excel(name = "订单数据包")
    private String orderData;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderNotes;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal totalPrice;

    @Excel(name = "订单金额")
    private BigDecimal points;

    /** 订单状态（0 未支付，1超时取消，2已支付，3申请取消中，4已取消，5已退款） */
    @Excel(name = "订单状态", readConverterExp = "0未支付，1超时取消，2已支付，3申请取消中，4已取消，5已退款")
    private String orderStatus;

    //订单状态 用于解决状态查询
    private String status;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;


    private String refundReason;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    private Long orderId;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private List<JiajiaMailOrderDetail> jiajiaMailOrderDetailList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getAddressId() {
        return addressId;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(Long transactionId) {
        this.transactionId = transactionId;
    }

    public String getOrderDescription() {
        return orderDescription;
    }

    public void setOrderDescription(String orderDescription) {
        this.orderDescription = orderDescription;
    }

    public String getOrderData() {
        return orderData;
    }

    public void setOrderData(String orderData) {
        this.orderData = orderData;
    }

    public String getOrderNotes() {
        return orderNotes;
    }

    public void setOrderNotes(String orderNotes) {
        this.orderNotes = orderNotes;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<JiajiaMailOrderDetail> getJiajiaMailOrderDetailList() {
        return jiajiaMailOrderDetailList;
    }

    public void setJiajiaMailOrderDetailList(List<JiajiaMailOrderDetail> jiajiaMailOrderDetailList) {
        this.jiajiaMailOrderDetailList = jiajiaMailOrderDetailList;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getPoints() {
        return points;
    }

    public void setPoints(BigDecimal points) {
        this.points = points;
    }
}
